import os,time
a=20
b=10000
def get_val():
    import json
    dct={}
    for i in range(a):
        dct[i]=i*2+4
        for j in range(b):
            dct=json.loads(json.dumps(dct))
        print(i)
t=time.time()
with open(os.path.dirname(os.path.abspath(__file__))+os.sep+"log3.log","a")as f:
    while 1:
        get_val()
        t2=time.time()
        f.write(str(t2-t)+str(a)+'\n')
        t=t2